import 'package:flutter/material.dart';
import 'bt_first_page_exception_indicator.dart';

class BtFirstPageErrorIndicator extends StatelessWidget {
  const BtFirstPageErrorIndicator({
    this.onTryAgain,
    Key? key,
    this.error,
    this.message,
  }) : super(key: key);

  final VoidCallback? onTryAgain;
  final String? error;
  final String? message;

  @override
  Widget build(BuildContext context) => BtFirstPageExceptionIndicator(
        message: message ?? 'Fail to load',
        onTryAgain: onTryAgain,
      );
}
